package com.frinder.configurer;

import com.frinder.cglib.AdvisorTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by frinder on 2017/11/9.
 */
@RestController
@RequestMapping("/cache")
public class CacheController {

    @GetMapping("/clear")
    public void clear() {
        AdvisorTemplate.CACHE.clear();
    }

}
